/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.qdu.service.impl;

import com.qdu.dao.JoinDao;
import com.qdu.dao.impl.JoinDaoImpl;
import com.qdu.entity.Join;
import com.qdu.service.JoinService;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class JoinServiceImpl implements JoinService{
    JoinDao joinDao = new JoinDaoImpl();
    @Override
    public int JoinActivity(Join j) {
        return joinDao.insert(j);
    }

    @Override
    public int ExitActivity(int Uno) {
        return joinDao.exit(Uno);
    }

    @Override
    public List<Join> findUsersByPno(int Pno) {
        return joinDao.getUsersByPno(Pno);
    }
    
}
